package com.battery.system.mapper;

import com.battery.system.base.BaseMapper;
import com.battery.system.domain.PurchaseStatus;

import java.util.List;

/**
 * 采购订单状态Mapper接口
 *
 * @author battery
 * @date 2021-01-22
 */
public interface PurchaseStatusMapper extends BaseMapper<PurchaseStatus> {
    /**
     * 查询采购订单状态
     *
     * @param purchaseId 采购订单状态ID
     * @return 采购订单状态
     */
    public PurchaseStatus selectPurchaseStatusById(String purchaseId);

    /**
     * 查询采购订单状态列表
     *
     * @param purchaseStatus 采购订单状态
     * @return 采购订单状态集合
     */
    public List<PurchaseStatus> selectPurchaseStatusList(PurchaseStatus purchaseStatus);

    /**
     * 新增采购订单状态
     *
     * @param purchaseStatus 采购订单状态
     * @return 结果
     */
    public int insertPurchaseStatus(PurchaseStatus purchaseStatus);

    /**
     * 修改采购订单状态
     *
     * @param purchaseStatus 采购订单状态
     * @return 结果
     */
    public int updatePurchaseStatus(PurchaseStatus purchaseStatus);

    /**
     * 删除采购订单状态
     *
     * @param purchaseId 采购订单状态ID
     * @return 结果
     */
    public int deletePurchaseStatusById(String purchaseId);

    /**
     * 批量删除采购订单状态
     *
     * @param purchaseIds 需要删除的数据ID
     * @return 结果
     */
    public int deletePurchaseStatusByIds(String[] purchaseIds);

    void updatePurchaseByOutOrder(PurchaseStatus purchaseStatus);
}
